<template>
  <div>
    <div class="bill-card-box" :class="ticketMode ? 'show' : 'hide'">
      <div class="title">一粒米餐厅</div>
      <div class="description">【预订单】</div>
      <div class="desc-item">
        <div>小票单号：</div>
        <span>YD2152025420</span>
      </div>
      <div class="desc-item">
        <div>操作人：</div>
        <span>张婉文</span>
      </div>
      <div class="desc-item">
        <div>预订人数：</div>
        <span>80人</span>
      </div>
      <div class="desc-item">
        <div>预订席数：</div>
        <span>8席</span>
      </div>
      <div class="desc-item">
        <div>单席金额：</div>
        <span>1000.00</span>
      </div>
      <div class="desc-item">
        <div>预订类型：</div>
        <span>婚宴</span>
      </div>
      <div class="desc-item">
        <div>预订时间：</div>
        <span>2099-12-31 17:30</span>
      </div>
      <div class="desc-item">
        <div>预订人：</div>
        <span>张先生</span>
      </div>
      <div class="desc-item">
        <div>联系方式：</div>
        <span>152****1212</span>
      </div>
      <div class="desc-item">
        <div>预订金：</div>
        <span>（微信）100.00</span>
      </div>
      <div class="desc-item">
        <div>备注：</div>
        <span>不吃折耳根</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-title">桌台详情</div>
      <div class="desc-item">
        <div>主台：</div>
        <span>主台：A01</span>
      </div>
      <div class="desc-item">
        <div>配台：</div>
        <span>配台：A05、A08</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-title">预订菜品</div>
      <div class="desc-item">
        <div>菜品名称</div>
        <span>数量</span>
        <div>金额</div>
      </div>
      <div class="desc-line"></div>
      <div class="good-list-box">
        <div class="good-item">
          <div class="good-name">燕窝粥</div>
          <p>1份×3席</p>
          <span>￥2000:00</span>
        </div>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>合计金额：</div>
        <span>￥6000:00</span>
      </div>
      <div class="address-phone-box">
        <div>餐厅地址：贵阳市南明区中华南路52号钻石广场3006</div>
        <div>餐厅电话：400-0851-123</div>
        <div>技术支持：贵州一粒米科技餐饮软件服务有限公司</div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { computed } from 'vue'
// import { useStore } from 'vuex'

// const store = useStore()
// const ticketMode = computed(() => store.getters.ticketMode)
</script>

<style lang="scss" scoped>
.hide {
  display: none;
  transition: all 1s;
}
.show {
  display: block;
  width: 420px;
  transition: all 1s;
}
.bill-card-box {
  width: 420px;
  height: 986px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 3px 0px 24px 0px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  padding: 30px;
  transition: all 1s;
  .title {
    font-size: 20px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
  }
  .description {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
    margin: 10px 0;
  }
  .desc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    color: #333333;
  }
  .good-list-box {
    margin-top: 10px;
    .good-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      font-family: PingFang SC, PingFang SC-Bold;
      font-weight: 700;
      color: #000000;
      .good-name {
        width: 100px;
        line-height: 16px;
        text-align: left;
      }
    }
  }

  .desc-line {
    width: 360px;
    height: 1px;
    background: #e2e2e2;
    margin-top: 10px;
  }
  .desc-title {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
    margin: 20px 0 10px 0;
  }
  .address-phone-box {
    margin-top: 50px;
    font-size: 14px;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: center;
    color: #333333;
    line-height: 24px;
    > div {
      margin-bottom: 10px;
    }
  }
}
</style>
